package cn.chenxing.generator;

import com.baomidou.mybatisplus.generator.AutoGenerator;

/**
 * @Description MP代码生成器
 * @Author maogen.ymg
 * @Date 2020/2/29 22:30
 */
public class MybatisPlusGenerator {

    public static void main(String[] args) {
        String url = "jdbc:mysql://47.100.49.226:3306/venus?useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true";
        String userName = "root";
        String pwd = "123456";
        String tableName = "venus_user_info";
        String moduleName = "user";

        // 代码生成器
        AutoGenerator mpg = new BaseGenerator().getAutoGenerator(userName, pwd, url, tableName, moduleName);
        mpg.execute();
    }
}
